using NFreeMarker.Template.Utility;

namespace NFreeMarker.Template
{
    /// <summary>
    /// Numeric values in a template data model must implement this interface.
    /// </summary>
    public interface ITemplateNumberModel : ITemplateModel
    {
        /// <summary>
        /// Returns the numeric value. The return value must not be null.
        /// </summary>
        /// <returns>The <see cref="Number"/> instance associated with this number model.</returns>
        Number GetAsNumber();
    }
}